#include <iostream>
#include <vector>
#include <cmath>
using namespace std;


class Solution {
public:
    int rectCover(int number) {
        if (number == 0) {
            return 0;
        } else if (number == 1) {
            return 1;
        }
        int a = 1;
        int b = 1;
        while (number > 1) {
            int c = a + b;
            a = b;
            b = c;
            number--;
        }
        return b;
    }
};

int main() {
    cout << Solution().rectCover(1) << endl;
    cout << Solution().rectCover(2) << endl;
    cout << Solution().rectCover(3) << endl;
    cout << Solution().rectCover(4) << endl;
    cout << Solution().rectCover(5) << endl;
    cout << Solution().rectCover(6) << endl;
    return 0;
}